
type User = {
    id: string;
    code: string;
    password: string;
    telNum: string;
    realName: string;
    birthday: string;
    addressId: string
    sex: number;
    remarks?: string;
}


type Address = {
    id: string;
    province: string;
    city: string;
    detailedAddress: string;
    remarks?: string;
}

type PublicSurveillanceData = {
    id: string;
    supervisorId: string;
    feedbackAddressId: string;
    feedbackDescription: string;
    estimatedLevel: number;
    isAssigned: number;
    feedbackTime: string;
    remarks?: string;
}


type ConfirmAqiData = {
    id: string;
    surveillanceId: string;
    inspectorId: string;
    sulfurDioxideConcentration: number;
    carbonMonoxideConcentration: number;
    particulateMatter: number;
    isConfirmed: number;
    aqi: number;
    createTime: string;
    updateTime: string;
    remarks?: string;
}



type SupervisionDataDto = {
    id: string;
    supervisor: User;
    address: Address;
    estimatedLevel: number;
    feedbackTime: string;
    description: string;
    isAssigned: number;

}


type ConfirmAqiDataDto = {
    id: string;
    aqi: number;
    supervisor: User;
    inspector: User;
    description: string;
    isConfirmed: number;
    confirmAddress: Address;
    updateTime: string;
}


type ProvinceStatisticDto = {
    code: string;
    province: string;
    provinceShort: string;
    sulfurExceedNum: number;
    carbonExceedNum: number;
    particulateExceedNum: number;
    aqiExceedNum: number;

}


type AqiDistributionStatisticDto = {
    aqi: number;
    aqiDescription: string;
    aqiNum: number;
}

type AqiTrendStatisticDto = {
    id: number;
    date: string;
    aqiExceedNum: number;

}


type OtherStatisticDto = {
    totalNum: number;
    goodNum: number;
    capitalCoverage: number;
    cityCoverage: number;
}

export type { User , ConfirmAqiData, PublicSurveillanceData,
    SupervisionDataDto, Address, ConfirmAqiDataDto, AqiTrendStatisticDto
, AqiDistributionStatisticDto, ProvinceStatisticDto, OtherStatisticDto}
